/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.json.listeners;

import com.tencent.tendon.convert.json.*;

/**
 *
 * @author nbzhang
 */
public final class JsonShortListener extends JsonAbstractListener<Short> {

    private static final JsonShortListener instance = new JsonShortListener();

    private JsonShortListener() {
    }

    public static JsonShortListener getInstance() {
        return instance;
    }

    @Override
    public void convertTo(JsonWriter out, Short value) {
        convertShortTo(out, value);
    }

    @Override
    public final Short convertFrom(final JsonReader in) {
        return convertShortFrom(in);
    }

    @Override
    public Class<Short> getType() {
        return Short.class;
    }
}
